<?php
include('../class/app/GestCommande/Panier.class.php');



$cryptedPassword = sha1(strtoupper($_POST['login']).':'.strtoupper($_POST['mdp']));
$login = $_POST['login'];
$mdp = $cryptedPassword;

if($oEnsemble->VerifAdmin($login,$mdp,$sql))
{
    $_SESSION['login'] = $login;

    header('Location: index.php?mod=general&page=resume');
}
else
{
    header('Location: index.php?mod=connexion&page=connexion');
}

?>
